home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / sane-utils.postinst < prev    next >
Text File  |  2008-05-07  |  453b  |  20 lines

  1. #!/bin/sh
  2.  
  3. if [ "$1" = configure ]; then
  4.     # Create saned user/group if they do not exist
  5.     if ! getent passwd | grep -q "^saned:"; then
  6.     echo "Adding saned group and user..."
  7.     adduser --quiet --system --no-create-home --group saned || true
  8.     fi
  9.  
  10.     # Add saned service, disabled by default
  11.     if [ -x /usr/sbin/update-inetd ]; then
  12.     update-inetd --add "#<off># sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned"
  13.     fi
  14. fi
  15.  
  16.  
  17.  
  18.  
  19.  
  20.